package com.jhgsys.internal.incentive.entity;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *  Entity
 *
 * @author Lujiachen
 * @date 2024-08-12 09:56:23
 */
@Data
@TableName("incentive_reward_config")
public class IncentiveRewardConfig implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "reward_config_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String rewardConfigId;

    /**
     * 公司id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 税率
     */
    @TableField("reward_amount_tax")
    @NotNull(message = "{required}")
    @Size(max = 22, message = "{noMoreThan}")
    private BigDecimal rewardAmountTax;

    /**
     * 积分转金额比例
     */
    @TableField("score_amount_ratio")
    @NotNull(message = "{required}")
    @Size(max = 22, message = "{noMoreThan}")
    private BigDecimal scoreAmountRatio;

    /**
     * 新建人
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 新建时间
     */
    @TableField("created_time")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @Size(max = 8, message = "{noMoreThan}")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标志
     */
    @TableField("deleted_flg")
    private String deletedFlg;
}